<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本属性-检索大小写和font</title>
    <style>
        p{
            /* 首字母大写 */
            text-transform: capitalize;
        }
        div{
            /* 字体大小20px和行高1em必须写 字体必须写 顺序不能乱*/
            font: italic bold 20px/1em 宋体;
        }
    </style>
</head>

<body>
    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Nisi ullam reiciendis deleniti hic officia inventore in, vero nesciunt non veritatis blanditiis tenetur iusto. Quisquam eius, in odit cumque aliquam quas.</p>
    <div>大家好 Lorem, ipsum dolor sit amet consectetur adipisicing elit. Accusantium error atque quod iste delectus odio quaerat voluptates sit quidem, libero a tempora ea veniam harum animi illo vel necessitatibus perspiciatis!</div>
</body>

</html>